import {action, observable} from "mobx-miniprogram";

export const store = observable({
    // tabBar选中项索引
    activeTabBarIndex: 0,

    // 更新tabbar选中项索引
    updateActiveTabBarIndex: action(function(index) {
        this.activeTabBarIndex = index;
    })
});